﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<ThesisSystem.Models.Thesis>" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title>添加论文</title>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>"
        type="text/javascript"></script>
    <script src="../../Scripts/jquery.js" type="text/javascript"></script>
    <link href="<%:  Url.Content("~/Content/CSS/searchstyle.css") %>" rel="stylesheet"
        type="text/css" />
    <link href="<%: Url.Content("~/Content/themes/base/jquery-ui.css")  %>" rel="stylesheet"
        type="text/css" />
    <script src="<%:  Url.Content("~/Scripts/GetDatetextBox.js") %>" type="text/javascript"></script>
    <style type="text/css">  #ThesisTitle {width:90%; padding-left:0; text-align:left;} th{ padding-right:0;} td{ padding-left:0; text-align:left;}</style>
</head>
<body>
    <div class="Search_thesis">
        <h3>
            添加论文</h3>
        <div class="sch_area">
            <form method="post" enctype="multipart/form-data" runat="Server" onsubmit="return CheckForm();">
            <div class="Create_thesis">
                <%: Html.ValidationSummary(true) %>
                <table  cellpadding="13px"   style="width:810px;padding:0; " >
                    <tr >
                        <th colspan="2" style=" text-align:right;">
                            <span>论文标题 : </span>
                        </th>
                        <td colspan="6" style=" text-align:left;">
                            <%: Html.EditorFor(model => model.ThesisTitle) %>    
                            <%: Html.ValidationMessageFor(model => model.ThesisTitle)%>
                        </td>
                    </tr>
                    <tr >
                        <th colspan="2" style=" text-align:right;">
                            <span>论文类型 : </span>
                        </th>
                        <td colspan="2">
                            <%: Html.DropDownList("ThesisType", string.Empty)%>
                            <%: Html.ValidationMessageFor(model => model.ThesisType) %>
                        </td>
                        <th colspan="2" style=" text-align:right;">
                            <span>学生学号 : </span>
                        </th>
                        <td colspan="2">
                            <%: Html.EditorFor(model => model.StudentID) %>
                            
                            <%: Html.ValidationMessageFor(model => model.StudentID) %>
                        </td>
                    </tr>
                    <tr >
                        <th colspan="2" style=" text-align:right;">
                            <span>论文开始时间 : </span>
                        </th>
                        <td colspan="2">
                            <%: Html.TextBoxFor(model => model.StartDate)%>
                            <%: Html.ValidationMessageFor(model => model.StartDate) %>
                        </td>
                        <th colspan="2" style=" text-align:right;">
                            <span>论文结束时间 : </span>
                        </th>
                        <td colspan="2">
                            <%: Html.TextBoxFor(model => model.EndDate)%>
                            <%: Html.ValidationMessageFor(model => model.EndDate) %>
                        </td>
                    </tr>
                </table>
                <%: Html.Hidden("UploadDate", DateTime.Now)%>
                <br style="clear: both;" />
            </div>
            <p align="center" style="height: 30px; border: 1px solid #c3e1c9; margin: 1px; padding: 1px;
                clear: left">
                <input type="submit" value="提交" id="CreateSubmit" />
                <input type="reset" value="重置" id="Createreset" />
                <%--       <%: Html.ActionLink("我的论文", "Index", null, new {id="Createback" })%>
                <input type="button" onclick="javascript:window.history.go(-1);" value="返回上一页" id="Back"/>--%>
            </p>
            </form>
        </div>
        <%:Content.Script("jquery-min.js",Url) %>
        <%:Content.Script("jquery-ui-min.js",Url) %>
        <script type="text/javascript">
            function CheckForm() {

                if (confirm("请确认所有信息是否正确填写? 点击“确定”将保存数据，点击“取消”将返回进行修改。确定要提交吗？") == true)
                    return true;
                else
                    return false;
            }
            $("#CreateSubmit").button();
            $("#Createback").button();
            $("#Createreset").button();
        </script>
    </div>
</body>
</html>
